import Vue from "vue";
import App from "./App.vue";

import VueRouter from "vue-router"; //加载路由
Vue.use(VueRouter);

import "xe-utils";
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";

// import "./config/vxe-table.style.less";

Vue.use(VXETable);

// Vue.config.productionTip = false

const routes = [
    {
        path: "/",
        name: "/",
        redirect: "/index",
    },
    {
        path: "/index",
        component: (resolve) => require(["./pages/index/index.vue"], resolve), //--建议以此做模板（使用指令实现完整的增、删、改、查、审核--审核可通用于其它类似的勾选后确认操作）    --Teval
    },
];

const router = new VueRouter({
    // mode: "history",
    routes,
});

// router.beforeEach((to, from, next) => {
//   Vue.prototype.$modalValidateInstance.isShow = false;
//   next();
// });

new Vue({
    router,
    render: (h) => h(App),
}).$mount("#app");
